package be.kuleuven.peno3.mobiletoledo.model;

import java.util.Calendar;
import java.util.Date;

public class QueueInfo {
	private int length;
	private String where, author;
	private String when;
	private Calendar cal;

	public int getLength() {
		return length;
	}

	public String getAuthor() {
		return author;
	}

	public String getLocation() {
		return where;
	}

	public Calendar getCal() {
		if(cal==null) {
			cal=Calendar.getInstance();
			cal.setTime(new Date(when));
		}
		return cal;
	}

}
